package com.fgs.common.api;


import com.fgs.common.CommonResponse;
import com.fgs.common.entity.region.RegionInfo;

import java.util.List;

import io.reactivex.Observable;
import okhttp3.MultipartBody;
import retrofit2.http.GET;
import retrofit2.http.Multipart;
import retrofit2.http.POST;
import retrofit2.http.Part;

/**
 * api service
 */
public interface CommonApiService {


    //上传图片
    @Multipart
    @POST("picture")
    Observable<CommonResponse> uploadPicture(@Part List<MultipartBody.Part> parts);


    //区域信息
    @GET("smc/areachina/list")
    Observable<CommonResponse<List<RegionInfo>>> regionInfo();

}


